package com.pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;




/**
 * @description:后台用户
 */

public  class User {


	private int userId; // 主键

	private String password; // 密码
	
	private String gender; // 性别
	
	private String logName; // 登陆账号

	private String status; // 状态  0是正常 1是禁用

	private String hireDate; // 入职时间

	private String telePhone; // 联系电话

	private String realName; // 真实姓名
	
	private String idcard; // 身份证

	private int roleId;  //角色id
	
    private int deptId; //部门id
    
    private int mgrId;//关联自己
    
	private String photoPath; //图片路径

	private User mgr; //封装的用户

	private Dept dept; //封装的部门
	
	private  Role role;// 封装的角色 或身份
	
	private String workNumber; //工号
	public String getWorkNumber() {
		return workNumber;
	}

	public void setWorkNumber(String workNumber) {
		this.workNumber = workNumber;
	}

	public int getMgrId() {
		return mgrId;
	}
	
	public void setMgrId(int mgrId) {
		this.mgrId = mgrId;
	}
	
	


	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public int getDeptId() {
		return deptId;
	}

	public void setDeptId(int deptId) {
		this.deptId = deptId;
	}



	public User getMgr() {
		return mgr;
	}

	public void setMgr(User mgr) {
		this.mgr = mgr;
	}

	public Dept getDept() {
		return dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}



	

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getPhotoPath() {
		return photoPath;
	}

	public void setPhotoPath(String photoPath) {
		this.photoPath = photoPath;
	}


	public String getLogName() {
		return logName;
	}

	public void setLogName(String logName) {
		this.logName = logName;
	}






	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}


	




	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	

	


	public String getHireDate() {
		return hireDate;
	}

	public void setHireDate(String hireDate) {
		this.hireDate = hireDate;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTelePhone() {
		return telePhone;
	}

	public void setTelePhone(String telePhone) {
		this.telePhone = telePhone;
	}

	@Override
	public String toString() {
		return "User [userId=" + userId + ", idcard=" + idcard + ",status=" + status + ",password=" + password
				+ ", gender=" + gender + ", logName=" + logName + ", hireDate="
				+ hireDate + ", realName=" + realName + ", deptId=" + deptId
				+ ", mgr=" + mgr + ", dept=" + dept + ", role=" + role + "]";
	}


	
	


}
